﻿<%@ Page Title="" Language="C#" MasterPageFile="~/NNC_H/MasterPage.master" AutoEventWireup="true" CodeFile="QL_GiangHang.aspx.cs" Inherits="NNC_H_QL_GiangHang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table style="width: 100%; border-color:Blue">
    <tr>
            <td colspan="2">
                &nbsp;
                &nbsp;
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="ID" 
                    DataSourceID="LQSDQLSanPhan_NCC" CellPadding="4" ForeColor="#333333" 
                    GridLines="None">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" 
                            ReadOnly="True" SortExpression="ID" />
                        <asp:BoundField DataField="NCC_UN" HeaderText="NCC_UN" 
                            SortExpression="NCC_UN" />
                        <asp:BoundField DataField="Ten" HeaderText="Ten" SortExpression="Ten" />
                        <asp:BoundField DataField="MaChungLoaiSP" HeaderText="MaChungLoaiSP" 
                            SortExpression="MaChungLoaiSP" />
                        <asp:BoundField DataField="MoTa" HeaderText="MoTa" SortExpression="MoTa" />
                        <asp:BoundField DataField="Hinh" HeaderText="Hinh" SortExpression="Hinh" />
                        <asp:BoundField DataField="Gia" HeaderText="Gia" 
                            SortExpression="Gia" />
                        <asp:BoundField DataField="SLToiThieu" HeaderText="SLToiThieu" 
                            SortExpression="SLToiThieu" />
                        <asp:BoundField DataField="NgayCapNhatSaucung" HeaderText="NgayCapNhatSaucung" 
                            SortExpression="NgayCapNhatSaucung" />
                    </Columns>
                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#6D2431" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                    <SortedAscendingCellStyle BackColor="#FDF5AC" />
                    <SortedAscendingHeaderStyle BackColor="#4D0000" />
                    <SortedDescendingCellStyle BackColor="#FCF6C0" />
                    <SortedDescendingHeaderStyle BackColor="#820000" />
                </asp:GridView>
                <asp:LinqDataSource ID="LQSDQLSanPhan_NCC" runat="server" 
                    ContextTypeName="DataAccess_Layer.DataClasses_RetailerDataContext" 
                    EnableDelete="True" EnableInsert="True" EnableUpdate="True" EntityTypeName="" 
                    TableName="NCC_GiangHangs" Where="NCC_UN == @NCC_UN">
                    <WhereParameters>
                        <asp:SessionParameter DefaultValue="@z" Name="NCC_UN" SessionField="NCC_UN" 
                            Type="String" />
                    </WhereParameters>
                </asp:LinqDataSource>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                &nbsp;
                Tên s&#7843;n ph&#7849;m :</td>
            <td>
                &nbsp;
                <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                &nbsp;
                Ch&#7911;ng lo&#7841;i s&#7843;n ph&#7849;m :</td>
            <td>
                &nbsp;
                <asp:DropDownList ID="DropDownList1" runat="server" Height="16px" Width="123px">
                </asp:DropDownList>
            </td>
        </tr>

        <tr>
            <td style="width: 149px">
                &nbsp;
                Hình :</td>
            <td>
                &nbsp;
                <asp:FileUpload ID="FileUpload1" runat="server" />
            </td>
        </tr>
         <tr>
            <td style="width: 149px">
                &nbsp;
                Mô t&#7843; :</td>
            <td>
                &nbsp;
                <asp:TextBox ID="txtmota" runat="server"></asp:TextBox>
            </td>
        </tr>
         <tr>
            <td style="width: 149px">
                &nbsp;
                S&#7889; l&#432;&#7907;ng s&#7843;n ph&#7849;m :</td>
            <td>
                &nbsp;
                <asp:TextBox ID="txtsoluong" runat="server"></asp:TextBox>
            </td>
        </tr>
         <tr>
            <td style="width: 149px">
                &nbsp;
                Giá bán :</td>
            <td>
                &nbsp;
                <asp:TextBox ID="txtgiaban" runat="server"></asp:TextBox>
            </td>
        </tr>
         <tr>
            <td style="width: 149px">
                &nbsp;
                Ngày c&#7853;p nh&#7853;t :</td>
            <td>
                
                 <asp:Calendar ID="ngayCapNhat" runat="server" BackColor="White" 
                BorderColor="#999999" CellPadding="4" 
                DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" 
                ForeColor="Black" Height="180px" Width="200px">
                <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                <NextPrevStyle VerticalAlign="Bottom" />
                <OtherMonthDayStyle ForeColor="#808080" />
                <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                <SelectorStyle BackColor="#CCCCCC" />
                <TitleStyle BackColor="#999999" BorderColor="Black" 
                    Font-Bold="True" />
                <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                <WeekendDayStyle BackColor="#FFFFCC" />
            </asp:Calendar>
             </td>
        </tr>
        <tr>
            <td style="width: 149px">
                &nbsp;
                <asp:Button ID="Button1" runat="server" Text="Thêm" onclick="Button1_Click" />
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="width: 149px">
                &nbsp;
                <asp:Label ID="StatusLabel" runat="server"></asp:Label>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        
    </table>
</asp:Content>

